<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>无标题文档</title>
	<link href="/res/css/style.css" rel="stylesheet" type="text/css" />
	<link href="/res/js/lib/layer/skin/layer.css" rel="stylesheet" type="text/css" />
	<link href="/res/js/lib/layer/skin/layer.ext.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/res/js/jquery.js"></script>
	<script type="text/javascript" src="/res/js/lib/json2.js"></script>	
	<script type="text/javascript" src="/res/js/lib/layer/layer.js"></script>
	<script type="text/javascript" src="/res/js/common/msgTools.js"></script>
	<script language="javascript" type="text/javascript" src="/res/js/lib/datePicker/WdatePicker.js"></script>
 	<script type="text/javascript" src="/res/js/pages/account/rechargeNoticeList.js"></script> 
</head>
<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">资金日志</a></li>
    <li><a href="#">充值记录</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    <form id="exportForm" action="/account/notice/recharge/export" method="post">
<!--        <input type="hidden" name="createTime"/>
       <input type="hidden" name="createTime1"/>    --> 
    </form>    
    <form id="queryForm" action="/account/notice/recharge" method="post"> 
    <div class="tools" style="margin:3px 0px;background: #efefef;padding:6px 0px;">  
        <span id="qryCond" class="toolbar" style="margin-left:10px;">
                       用户名：<input name="userName" value="${dto.userName}" type="text" class="dfinput" style="width:100px;"/>
                       手机号：<input name="mobile" value="${dto.mobile}" type="text" class="dfinput" style="width:100px;"/>
		   支付方式：
 			   <select class="dfinput"  name="paymentId" style="width:100px;" onchange="submit()">
 			    <option value="-1">---全部---</option>
 			    <c:forEach items="${paymentList}" var="pm">
 			        <option value="${pm.id}"  ${(!empty(dto.paymentId) && dto.paymentId==pm.id)?"selected":""}>${pm.name}</option>
 			    </c:forEach>
			   </select>                        
		   是否支付：
 			   <select class="dfinput"  name="ispay" style="width:100px;" onchange="submit()">
 			    <option value="-1">---全部---</option>
 			    <option value="0"  ${(!empty(dto.ispay) && dto.ispay==0)?"selected":""}>未支付</option>
 			    <option value="1"  ${(!empty(dto.ispay) && dto.ispay==1)?"selected":""}>已支付</option>
			   </select>                        
                       时间：<input id="d12" name="createTime" value="${dto.createTime}" type="text" class="dfinput" style="width:100px;" onClick="WdatePicker()"/>
              <img onclick="WdatePicker({el:'d12'})" src="/res/js/lib/datePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle">至
              <input id="d13" name="createTime1" value="${dto.createTime1}" type="text" class="dfinput" style="width:100px;" onClick="WdatePicker()"/>
              <img onclick="WdatePicker({el:'d13'})" src="/res/js/lib/datePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle">             
        </span>
    	<ul class="toolbar" style="margin-left:20px;">
	        <li onclick="$('#queryForm').submit()"><span><img src="/res/images/ico06.png" /></span>搜索</li>        
	        <li onclick="exportDat()"><span><img src="/res/images/f05.png" /></span>导出</li>
        </ul>    
    </div>
    
    <table class="tablelist">
    	<thead>
	    	<tr>
	        <th class="chk"><input id="chkAll" type="checkbox" value="" /></th>
	        <th>编号</th>
			<th>项目名称</th>
			<th>现金</th>
			<!-- <th>商币</th> -->  	
			<th>会员名</th> 					
			<th>付款单号</th> 
			<th>外部单号</th> 
			<th>卡号</th>
			<th>开户行</th> 			
			<th>备注</th>
			<th>支付方式</th> 
			<!-- <th>创建时间</th>  -->
			<th>支付时间</th> 
			<th>是否支付</th>
	        </tr>
        </thead>
        <tbody>        
	        <c:forEach items="${list}" var="row" varStatus="status">
		        <tr>
		        <td align="center"><input id="chk_${row.id}" type="checkbox" value="${row.id}" /></td>
		        <td>${status.index+1}</td>	
		        <td>${row.title}</td>	 
		        <td>${!empty(row.money)?(row.money>0?"+¥":"-¥"):""}${!empty(row.money)&&row.money<0?-row.money:row.money}</td>
		        <!-- 
		        <td>${!empty(row.cloud_money)?(row.cloud_money>0?"+¥":"-¥"):""}${!empty(row.cloud_money)&&row.cloud_money<0?-row.cloud_money:row.cloud_money}</td>
		         -->
		        <td><a href="javascript:viewUser('${row.userid}')" class="tablelink">${row.user_name}</a></td>		               
		        <td>${row.sn}</td>
		        <td>${row.outer_sn}</td>
		        <td>${row.bank_card}</td>
		        <td>${row.bank_name}</td>			        
		        <td title="${row.memo}">${fn:substring(row.memo,0,20)}${fn:length(row.memo)>20?"...":""}</td>		        
		        <td>${row.payment_name}</td>
		        <%-- <td><fmt:formatDate value="${row.create_time}" pattern="yyyy-MM-dd HH:mm"/> </td> --%>
		        <td><fmt:formatDate value="${row.outer_time}" pattern="yyyy-MM-dd HH:mm"/> </td>
		        <td>${row.is_paid==1?"已支付":"未支付"}</td>	
		        </tr>  
	        </c:forEach>
         </tbody>
    </table>   
    </form>
    <div class="pager" style="float: left;">金额总计：${pager.data.sum_money}</div>   
    <tags:pager pagerRange="10" pageSize="${pager.pageSize}" totalPage="${pager.pageCount}" curIndex="${pager.pageIndex}" rowCount="${pager.rowCount}" formId="queryForm"></tags:pager> 
 
    
    </div>
    
    <script type="text/javascript">
	   $('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>

</html>
